/**
 * 
 */
package com.nwpusp.display.resmgr;

import com.nwpusp.display.views.components.Animal;
import com.nwpusp.display.views.components.Props;

import android.content.Context;
import android.view.View;

/**
 * @author JustinCao
 *
 */
public class PropViewResManager extends ViewResourceManager {

	@Override
	protected View allocView(Object[] param) {
		return new Props((Context) param[0], ((Float)param[1]).floatValue());
	}

	@Override
	protected View searchView(Object[] param) {
		if(isEmpty())
			return null;
		Props p = (Props) super.poll();
		if(p != null) {
			return p;
		}
		return null;
	}

}
